package view;

import javax.faces.event.ValueChangeEvent;

import oracle.adf.view.rich.component.rich.input.RichSelectBooleanCheckbox;
import oracle.adf.view.rich.component.rich.layout.RichPanelBox;
import oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout;

public class LayoutDecorativeBoxMB {
    
    private boolean flag=true;
   


    public LayoutDecorativeBoxMB() {
    }


    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public boolean isFlag() {
        return flag;
    }
   
    public void naKlik(ValueChangeEvent valueChangeEvent) {
        // Add event code here...
        RichSelectBooleanCheckbox cb = (RichSelectBooleanCheckbox)valueChangeEvent.getSource();
                if (cb.isSelected()) flag=true; else flag=false;              
                System.out.println(flag);
    }
}
